using UnityEngine;

public class MonoSingleton_Low<T> : MonoBehaviour where T : MonoSingleton_Low<T>
{
	private static T _instance;

	public static T Instance => _instance;

	private void Awake()
	{
		Debug.LogError("单场单例（不可自动创建：" + base.name);
		if (_instance != null && _instance != this)
		{
			Object.Destroy(base.gameObject);
		}
		_instance = this as T;
	}
}
